<div class="c-header">
    <div class="wrap">
        <a href="/" class="logo"><img src="__static__/hry/images/logo_03.png" alt=""></a>
        <div class="nav" id="headernav">
            <a href="/" class="{if condition="CONTROLLER_NAME eq 'Index'"}ac{/if} firstnav">首页</a>
			{volist name='treeMenu' id="to"}
			{if condition=" empty($to.child) "}
            <a href="{:url(MODULE_NAME.'/'.$to.name)}" class="{if condition="strstr($to.name,CONTROLLER_NAME)"}ac{/if} firstnav">{$to.title}</a>
			{else /}
            <div class="{if condition="CONTROLLER_NAME eq 'Category' || CONTROLLER_NAME eq 'Detail'"}ac{/if} firstnav" onclick="location.href='{:url($to.name)}'">
                <span>{$to.title} </span>
                <div class="icon"></div>
                <div class="secondnav">
				{volist name='to.child' id="oo"}
                    <a href="{:url(MODULE_NAME.'/'.$to.name,['id'=>$oo.name])}">{$oo.title}</a>
				{/volist}
                </div>
            </div>
			{/if}
			{/volist}
        </div>
        <form action="{:url('Project/index')}" class=" form {if condition="input('search')"}formfocuse{/if}"  id="headerform">
            <input type="text" class="form" name="search" value="{:input('search')}">
            <div class="submit form">
                <input type="submit" class="form">
            </div>

        </form>
		{if condition="session('CID')"}
        <div class="logined">
			{if $message}
			<img style='float: left;margin-right: 0px;-webkit-transform: rotate(-180deg);transform: rotate(-180deg);cursor:pointer;' src="__static__/hry/images/notice_ico.gif" onclick="location.href='{:url("Member/notice")}'" title="您有{$message}未读消息" />
			{/if}
			<a href="{:url('Company/index')}" style="color:#1fa5eb">{:session('CName')}</a>
            <a href="{:url('Companylogin/logout')}">退出登录</a>
        </div>
		{else /}
        <div class="handle">
            <a href="{:url('Companylogin/index')}" class="login">登录</a>
        </div>
		{/if}
        <!--登录成功-->
    </div>
</div>